					
					<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
					<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
					<div class="post">
						<h2 class="title"><fmt:message key="locanet.Filme.busca.titulo"/></h2>
						<form action="filme@select.action" method="get">
							<table><tr>
							<td><input style="width:96%" maxlength="100" type="text" name="busca" value="${ !empty param.busca?param.busca:'' }" /></td>
							<td><select name="entity.estilo.id" >
								<option value=""><fmt:message key="locanet.Filme.estilo"/></option>
							    <c:forEach  items="${requestScope.estilos}"  var="e">
							    	<option value="${ e.id }" <c:out value="${ (!empty param['entity.estilo.id']&&param['entity.estilo.id']==e.id)?'selected':'' }" />><c:out value="${ e.nome }" /></option>
							    </c:forEach>
							</select></td>
							<td><input type="submit" value="<fmt:message key="locanet.butoes.buscar" />" /></td>
							<c:if test="${ isFuncionario }" >
								<td><a href="filme@insert.action"><fmt:message key="locanet.butoes.inserir"/></a></td>
							</c:if>
							</tr></table>
							
						</form>
					</div>
					<div class="post">
						<table id="table_busca">
							<tr><th><h3><fmt:message key="locanet.Filme.filmes"/></h3></th></tr>
						     <c:forEach items="${requestScope.entities}" var="f">
								<tr>
									<td><div style="margin: 0px 60px 0px 60px;">
										<a href="filme@view.action?entity.id=${f.id}"><img style="margin:0px;" class="img_busca" src="<c:out default="pics_filmes/default.png" value="${ f.imagem.url }"  />" /></a>
										<div class="descricao_busca" style="margin:0px;text-align:right;">
											<a href="filme@view.action?entity.id=${f.id}">
												<b><c:out  escapeXml="false" value="${ f.titulo }" /></b><font style="color: red"><c:if test="${f.status==0}">[<fmt:message key="locanet.entidades.status.inativo" />]</c:if></font><br/>
												<c:out value="${ f.estilo.nome }" /><br/>
												<fmt:formatDate pattern="dd/MM/yyyy" value="${ f.dataChegada }"  /><br/>
											</a>
											<c:if test="${isCliente}"><a href="locacao@addNoCarrinho.action?entity.filme.id=${f.id}"><img class="ico" src="images/icon_car.png" title="<fmt:message key="locanet.locacoes.adicionarCarrinho" />" /></a></c:if><br/>
											<c:if test="${isFuncionario}">
												<a href="filme@update.action?entity.id=${f.id}"><fmt:message key="locanet.entidades.lista.editar"/></a>&nbsp;
												<a href="filme@delete.action?entity.id=${f.id}"><fmt:message key="locanet.entidades.lista.excluir"/></a>
											</c:if>
										</div>
									</div></td>
								</tr>
							</c:forEach>
							<tr><td colspan="100%" style="text-align:center">
						    	<c:out value="${requestScope.totalPagingResults}" /><fmt:message key="locanet.entidades.lista.resultados.achado"/><br/>
							    <div class="pagination"><c:forEach begin="1" end="${requestScope.totalPagingResults/10+((requestScope.totalPagingResults%10!=0)?1:0)}" var="cont">
							    	<a <c:if test="${ empty param.page&&cont==1||!empty param.page&&param.page==cont }">class="current"</c:if> href="filme@select.action?busca=${param.busca}&entity.estilo.id=${param['entity.estilo.id']}&page=${cont}"><c:out value="${cont}" /></a>
							    </c:forEach></div>
						    </td></tr>
						</table>
					</div>
